package democode.waitnotify.productconsume;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 3/1/2023 8:48 AM
 */
public class ProductThread extends Thread {

    private Product product;

    public ProductThread(Product product) {
        this.product = product;
    }

    @Override
    public void run() {
        while (true){
            product.setValue();
        }
    }
}